﻿@model WorkModel
@{
    ViewBag.Title = "工作情况";
    Layout = "~/Views/Shared/_Layout.cshtml";

    var tradeSet = ViewBag.TradeSet as SelectList;
    var tradeTypeSet = ViewBag.TradeTypeSet as SelectList;
    var workStateSet = ViewBag.WorkStateSet as SelectList;
    var incomeDetailSet = ViewBag.IncomeDetailSet as SelectList;
    var majorSet = ViewBag.MajorSet as SelectList;

}

<section class="pe-basic">
    @Html.Partial("_PersonalPartial")

    <div class="content">
        <h4>工作情况</h4>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Trade) @Html.ValidationMessageFor(model => model.Trade)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Trade, tradeSet)

                </div>
            </div>
            <div class="field">
                <div class="editor-label editor-label-half">
                    @Html.LabelFor(model => model.TradeType) @Html.ValidationMessageFor(model => model.TradeType)
                </div>
                <div class="editor-label">
                    @Html.LabelFor(model => model.WorkState) @Html.ValidationMessageFor(model => model.WorkState)
                </div>
                <div class="editor-field editor-field-half">
                    @Html.DropDownListFor(model => model.TradeType, tradeTypeSet)
                    @Html.DropDownListFor(model => model.WorkState, workStateSet)

                </div>
            </div>
      
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.IncomeDetail) @Html.ValidationMessageFor(model => model.IncomeDetail)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.IncomeDetail, incomeDetailSet)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Company) @Html.ValidationMessageFor(model => model.Company)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Company)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Department) @Html.ValidationMessageFor(model => model.Department)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Department)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Duty) @Html.ValidationMessageFor(model => model.Duty)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Duty)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Investment) @Html.ValidationMessageFor(model => model.Investment)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Investment)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.School) @Html.ValidationMessageFor(model => model.School)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.School)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Major) @Html.ValidationMessageFor(model => model.Major)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Major, majorSet)

                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                </div>
                <div class="editor-field">
                    <input type="submit" value="保存" />@Html.ActionLink("继续下一步", "Declaration")
                </div>
            </div>
        }
    </div>
</section>
